﻿using FoodModel;
using J.IRepository;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace J.FoodRepository.InterFace
{
    public interface IGroupingRepository:IRepository<GroupingModel>
    {
        /// <summary>
        /// 菜品分组添加
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        Task<int> GroupingAdd(GroupingModel model);
        /// <summary>
        /// 菜品分组显示
        /// </summary>
        /// <returns></returns>
        Task<List<GroupingModel>> GroupingShow();
        /// <summary>
        /// 菜品分组反填
        /// </summary>
        /// <returns></returns>
        Task<GroupingModel> GroupingBack(int id);
        /// <summary>
        /// 菜品分组反填菜品
        /// </summary>
        /// <returns></returns>
        Task<GroupingModel> GroupingBackShow(int id);
        /// <summary>
        /// 菜品分组修改
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        Task<int> GroupingUpDate(GroupingModel model);
        /// <summary>
        /// 菜品分组删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int> GroupingDelete(string id);
        /// <summary>
        /// 菜品分组字段删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int> GroupingDeleteid(string id,string DishId);
    }
}
